<script type="text/javascript">
<!--
	function changeTabColor(trId, isDefault){
		if(isDefault == 1){
			$("#userAddrTab tr:[id='" + trId + "']").css("background-color", "#EDF7FF");
		}else{
			$("#userAddrTab tr:[id='" + trId + "']").css("background-color", "#ffffff");
		}
	}
	
//-->
</script>

[#-- 创建注册会员问题列表自定义宏。参数说明：par_userAddrList（登录会员有效地址列表）--]
[#macro ecs_ud_useraddrlist par_userAddrList]
	[#if par_userAddrList ??]
		[#list par_userAddrList as data] 
			<tr id="${data.braId}">
				<td align="center">${(data.braConsignee)! ""}</td>
				<td>
					[#-- 读取配送区域自定义标签。参数说明：par_disRegionId（配送区域ID）--]
				    [@ecs_disRegionInfo par_disRegionId = data.braCountry ]
				    	${(var_disRegionInfo.bdrName)! ""}
				    [/@ecs_disRegionInfo]
				    
				    [#-- 读取配送区域自定义标签。参数说明：par_disRegionId（配送区域ID）--]
				    [@ecs_disRegionInfo par_disRegionId = data.braProvince ]
				    	${(var_disRegionInfo.bdrName)! ""}
				    [/@ecs_disRegionInfo]
				    
				    [#-- 读取配送区域自定义标签。参数说明：par_disRegionId（配送区域ID）--]
				    [@ecs_disRegionInfo par_disRegionId = data.braCity ]
				    	${(var_disRegionInfo.bdrName)! ""}
				    [/@ecs_disRegionInfo]
				    
				    [#-- 读取配送区域自定义标签。参数说明：par_disRegionId（配送区域ID）--]
				    [@ecs_disRegionInfo par_disRegionId = data.braDistrict ]
				    	${(var_disRegionInfo.bdrName)! ""}
				    [/@ecs_disRegionInfo]
				</td>
				<td>${(data.braDetail)! ""}</td>
				<td>
					[#if (data.braPhone) ?? && (data.braPhone) != ""]
						${data.braPhone}<br/>${(data.braMobile)! ""}
					[#else]
						${(data.braMobile)! ""}
					[/#if]
				</td>
				<td align="center">${(data.braZipcode)! ""}</td>
				<td align="center">
					[#if (data.braIsdefault) ?? && (data.braIsdefault) == 1]
						<input type="radio" name="isDefaultAddr" checked="checked"/>
					[#else]
						<input type="radio" name="isDefaultAddr" onclick="user_updateUserDefAddr('${data.braId}');"/>
					[/#if]
				</td>
				<td align="center">
					<a href="javascript: user_updateUserAddr('${data.braId}');" 
						style="color:#006AD0;text-decoration: none;">修改</a>
					<font color="#000000">|</font>
					<a href="javascript: user_deleteUserAddr('${data.braId}');" 
						style="color:#006AD0;text-decoration: none;">删除</a>
				</td>
			</tr>
			
			<script type="text/javascript">
			<!--
				changeTabColor("${data.braId}", "${data.braIsdefault}");
			//-->
			</script>
		[/#list]	
	[/#if]
[/#macro]
